* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Kanit', sans-serif;
    overflow-x: hidden
  }
  
  /* Fade-in effect */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    /* เริ่มจากตำแหน่งที่ต่ำกว่าปกติ */
    transition: opacity 1s ease-out, transform 1s ease-out;
    /* ปรับความเร็วของการเลื่อนและความโปร่งใส */
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
    /* เลื่อนกลับมาตำแหน่งปกติ */
  }
  
  /* หน้าแรก: แอนิเมชันทำงานเมื่อโหลดหน้า */
  .fade-in-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }
  
  .fade-in-on-load.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* แอนิเมชันสำหรับคอนเทนต์แรก */
  .content1-fade-in {
    opacity: 0;
    transform: translateX(-100px); /* เปลี่ยนจาก translateY เป็น translateX เพื่อเลื่อนจากทางซ้าย */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  }
  
  .content1-fade-in.visible {
    opacity: 1;
    transform: translateX(0); /* กลับมาตรงกลาง */
  }
  
  /* แอนิเมชันสำหรับคอนเทนต์ที่สอง */
  .content2-fade-in {
    opacity: 0;
    transform: translateX(-100px); /* เลื่อนจากทางซ้าย */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  }
  
  .content2-fade-in.visible {
    opacity: 1;
    transform: translateX(0); /* กลับมาตรงกลาง */
  }
  
  /* ปุ่มแยกออกมาอยู่นอกคอนเทนต์ พร้อมกับแอนิเมชัน */
  .fade-in1 {
    opacity: 0;
    transform: translateX(-100px); /* เลื่อนเข้าจากทางซ้าย */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
  }
  
  .fade-in1.visible {
    opacity: 1;
    transform: translateX(0); /* กลับมาตรงกลาง */
  }

  #toggle-link img {
    filter: brightness(0) invert(1); /* เปลี่ยนสีของรูปภาพเป็นสีขาว */
}
  
  
  
  
  .container {
    max-width: 1140px;
    margin: 0 auto;
    padding-top: 0.5rem; /* เพิ่ม padding เพื่อเว้นช่องสำหรับ nav */
  }
  
  nav {
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.6); /* สีดำที่มีความโปร่งใส 50% */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    border-radius: 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-con {
    display: flex;
    align-items: center;
    padding-right: 0px; /* ลดให้ไม่มี padding ซ้ายเลย */
    margin-left: 0px; /* เพิ่ม margin-left แทนหากต้องการ */
  }
  
  
  .logo {
    margin-right: 2rem; /* ลดระยะห่างโลโก้ */
  }
  
  .menu {
    display: flex;
      justify-content: space-between;
      align-items: center;
      list-style: none;
      padding: 0;
      margin: 0;
      gap: 30px; /* ระยะห่างระหว่างแต่ละเมนูและไอคอน */
  }
  
  .menu li {
    display: flex;
    align-items: center;
  }
  
  .menu li a {
    display: flex;
      align-items: center;
      color: white;
      text-decoration: none;
      font-size: 16px;
  }
  
  .menu li a img {
    width: 24px; /* ปรับขนาดไอคอนตามที่ต้องการ */
    margin-right: 5px; /* ระยะห่างระหว่างไอคอนกับข้อความ */
  }



/* สำหรับพื้นหลังและเลย์เอาต์หลัก */
.hero-section {
    background-color: #000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column; /* จัดเรียงเนื้อหาให้เป็นแนวตั้ง */
    justify-content: center;
    align-items: center;
}

.hero-con {
    display: flex;
    justify-content: space-between; /* วางข้อความและวิดีโอข้างกัน */
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.hero-info {
    width: 45%; /* ปรับให้ใช้พื้นที่ 45% ของความกว้าง */
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    color: #fff;
}

.hero-info h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 64px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #DF00B1;
}

.hero-info h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 30px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1.2;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero-info p {
    font-family: 'Kanit', sans-serif;
    font-size: 16px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 300 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    text-align: left;
}



.hero-info2 {
    width: 45%; /* ปรับให้ใช้พื้นที่ 45% ของความกว้าง */
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    color: #fff;
}

.hero-info2 h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 3rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #DF00B1;
}

.hero-info2 h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 2.5rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1.2;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero-info2 p {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 300 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    text-align: left;
}






.hero-img {
    width: 102%; /* ปรับขนาดความกว้างของวิดีโอ */
    padding: 20px; /* เพิ่ม padding เพื่อเว้นช่องว่างระหว่างวิดีโอกับขอบ */
    display: flex;
    justify-content: center;
}


.background-video {
    width: 102%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.hero-btn-wrapper {
    display: flex;
    justify-content: flex-start; /* จัดปุ่มให้อยู่ทางซ้าย */
    align-items: center;
    margin-top: 20px;
    padding-left: 50px; /* เพิ่มระยะห่างจากขอบซ้าย */
    width: 100%; /* ให้ container กินพื้นที่เต็ม */
    position: relative; /* ไม่ใช้ absolute เพื่อให้ตำแหน่งยืดหยุ่น */
}

#openPopupBtnFooter {
    text-decoration: none !important;
}



.hero-info2 {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    color: #fff;
}

.hero-info2 h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 3rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #DF00B1;
}

.hero-info2 h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1.2;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero-info2 p {
    font-family: 'Kanit', sans-serif;
    font-size: 1rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 300 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    text-align: left;
}

.hero-info2 .hero-btn {
    display: inline-block;
    background-color: #DF00B1;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    text-decoration: none;
}

.hero-btn {
    display: inline-block;
    background-color: #DF00B1;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 18px;
    text-decoration: none;
}


.background-video2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* หรือคุณสามารถลองใช้ contain หากไม่ต้องการครอบตัด */
    z-index: -1;
}

.background-video3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* หรือคุณสามารถลองใช้ contain หากไม่ต้องการครอบตัด */
    z-index: 0;
    filter: brightness(50%); /* ลดความสว่างลง */
}

.background-video4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* หรือคุณสามารถลองใช้ contain หากไม่ต้องการครอบตัด */
    z-index: 0;
    
}


/* เพิ่มกฎนี้เพื่อยกเลิกแอนิเมชันในหน้าแรก */
.hero-section .fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: none; /* ลบแอนิเมชันออกสำหรับหน้าแรก */
}

/* Popup */
.popup {
    color: #fff;
    display: none; /* เปลี่ยนเป็น flex เพื่อจัดกึ่งกลาง */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #000;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    /* เพิ่มความโค้งให้กรอบ */
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.popup-content button {
    background-color: #DF00B1;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    /* ให้ปุ่มกินพื้นที่ container */
    max-width: 300px;
    /* ขนาดสูงสุดของปุ่ม */
    margin-bottom: 15px;
}

.popup-content textarea {
    width: 100%;
    /* ให้ textarea กินพื้นที่เต็ม */
    height: 40px;
    /* กำหนดความสูงให้เหมือนกับ input */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    /* เพิ่มความโค้งให้เหมือนกับ input */
    box-sizing: border-box;
    resize: none;
    /* ปิดการยืดหดของ textarea */
    font-size: 16px;
    /* ปรับขนาดตัวอักษร */
    background-color: #f9f9f9;
    /* สีพื้นหลังเหมือนกับ input */
    color: #333;
    /* สีตัวอักษรเหมือนกับ input */
    overflow: hidden;
    /* ปิดการแสดง scroll bar */
}

.popup-content h2 {
    font-weight:400; /* หรือ 400 ขึ้นไป */
}

.service-label {
    display: block;
    font-weight: regular;
    margin-bottom: 10px; /* เพิ่มช่องว่างระหว่าง label กับ checkbox */
    font-size: 18px;
    color: #fff; /* หรือสีอื่นที่คุณต้องการ */
    padding-left: 10px;
    padding-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column; /* จัดวางเนื้อหาภายใน form-group ให้เป็นแนวตั้ง */
    align-items: flex-start; /* จัดข้อความและ checkbox ให้อยู่ซ้าย */
}

.form-group .form-field {
    flex: 0 0 48%;
    /* กำหนดให้แต่ละฟอร์มกินพื้นที่ 48% เพื่อให้มีระยะห่างระหว่างฟอร์ม */
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: regular;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    color: #8E8B8B;
}

.form-group2 label {
    display: block;
    margin-bottom: 5px;
    font-weight: regular;
    color: #fff;
    font-family: 'Kanit', sans-serif;
    font-size: 14px;
    text-align: left; 
    line-height: 1.5;
}

.form-group input,
.form-group textarea,
/* สไตล์ทั่วไปสำหรับทุก dropdown */
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 25px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: 'Kanit', sans-serif;
    appearance: none;
    background-color: white;
    color: #8E8B8B;
}

/* สไตล์เฉพาะสำหรับ dropdown ที่มีลูกศร */
.dropdown-with-arrow {
    padding-right: 40px; /* เพิ่มพื้นที่ด้านขวาให้ลูกศร */
    background: url('Chevron\ down.png') no-repeat right 10px center;
    background-size: 15px; /* ขนาดลูกศร */
}

.popup-content button {
    background-color: #DF00B1;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    /* ทำให้ปุ่มกว้างเท่ากับ container */
    max-width: 300px;
    /* กำหนดขนาดสูงสุด */
    margin-bottom: 15px;
    /* เพิ่มช่องว่างระหว่างปุ่ม */
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    /* เพิ่มช่องว่างระหว่างฟอร์ม */
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-right: 10px;
}

.form-group:last-child {
    margin-right: 0;
}

input[type="checkbox"] {
    display: none;
    /* ซ่อน checkbox เดิม */
}

input[type="checkbox"]+label img {
    cursor: pointer;
    /* ให้มี cursor แบบ pointer เมื่อ hover */
}

input[type="checkbox"]:checked+label img {
    border: 2px solid #DF00B1;
    /* ใส่กรอบให้กับรูปที่เลือก */
}



.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.checkbox-group label {
    margin-left: 10px; /* เพิ่มช่องว่างระหว่าง checkbox กับ label */
    white-space: nowrap; /* บังคับให้ข้อความอยู่ในบรรทัดเดียว */
}

.custom-checkbox {
    display: none; /* ซ่อน checkbox ดั้งเดิม */
}

.checkbox-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-container {
    display: flex;
    flex-wrap: wrap; /* ให้ checkbox ที่เหลือขยับขึ้นมาข้างกันถ้ามีที่ว่าง */
    gap: 30px; /* ช่องว่างระหว่างคอลัมน์ */
}

.checkbox-column {
    display: flex;
    flex-direction: column;
    width: 45%; /* กำหนดความกว้างให้ checkbox แต่ละกลุ่ม */
}

.custom-checkbox:checked + label .checkbox-icon {
    content: url('Checked.png'); /* แสดงรูปภาพ "ถูก" เมื่อ checkbox ถูกเลือก */
}


button.close-btn:first-of-type {
    width: 100%;
    /* ให้ปุ่มยาวเต็มความกว้าง */
    padding: 8px 0;
    background-color: #DF00B1;
    /* สีพื้นหลัง */
    color: #fff;
    /* สีตัวอักษร */
    border: none;
    /* เอากรอบออก */
    border-radius: 25px;
    /* เพิ่มความโค้ง */
    margin-top: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    max-width: 500px;
    /* เพิ่มความยาวของปุ่ม */
    font-family: 'Kanit', sans-serif;
}

button#closePopupBtn2 {
    background-color: transparent;
    /* ทำให้พื้นหลังโปร่งใส */
    color: #ffffff;
    /* สีตัวอักษร */
    font-size: 1rem;
    border: none;
    /* เอากรอบออก */
    cursor: pointer;
    margin-bottom: 10px;
    font-family: 'Kanit', sans-serif;
}


/** หน้า 2 */

.blog2 {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.hero2-con {
    display: flex;
    justify-content: center;
    /* จัดให้อยู่กึ่งกลางแนวนอน */
    align-items: center;
    /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    text-align: center;
    /* จัดข้อความให้อยู่กึ่งกลางในบรรทัด */
    height: 100vh;
    /* ตั้งความสูงให้เต็มหน้าจอ */
}

.hero2-info {
    max-width: 800px;
    /* จำกัดความกว้างของเนื้อหา */
    margin: 0 auto;
    /* จัดให้อยู่ตรงกลางในคอนเทนเนอร์ */
    padding: 2rem;
    color: #fff;
}

.hero2-info h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 4rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
}

.hero2-info h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}


.hero2-info p {
    text-align: center;
    /* จัดข้อความในบล็อกให้อยู่กึ่งกลาง */
    margin: 1rem 0;
}

.hero2-info .hero2-btn {
    display: inline-block;
    background-color: #DF00B1;
    color: #fff;
    padding: 0.5rem 2rem;
    /* ขยายขนาดปุ่มด้วยการเพิ่ม padding */
    border-radius: 18px;
    text-decoration: none;
    margin-top: 250px; /* ขยับปุ่มลง */
}

.imgarrow-right {
    position: absolute;
    right: 20px; /* ระยะห่างจากขอบขวา */
    bottom: 10px; /* ระยะห่างจากขอบล่าง */
    width: 25px; /* ขนาดของลูกศร */
    height: auto;
  }
  

/** หน้า 3 */

.blog3 {
    position: relative;
    height: 100vh;
    /* ให้ความสูงเต็มหน้าจอ */
    /* ใส่รูปภาพที่ต้องการ */
    background-size: cover;
    /* ทำให้รูปครอบคลุมเต็มพื้นที่ */
    background-position: center;
    /* จัดตำแหน่งรูปให้อยู่ตรงกลาง */
    background-repeat: no-repeat;
    /* ป้องกันการทำซ้ำรูป */
    overflow: hidden;
}

.hero3-con {
    display: flex;
    justify-content: center;
    /* จัดให้อยู่กึ่งกลางแนวนอน */
    align-items: center;
    /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    text-align: center;
    /* จัดข้อความให้อยู่กึ่งกลางในบรรทัด */
    height: 100vh;
    /* ตั้งความสูงให้เต็มหน้าจอ */
}

.hero3-info {
    max-width: 800px;
    /* จำกัดความกว้างของเนื้อหา */
    margin: 0 auto;
    /* จัดให้อยู่ตรงกลางในคอนเทนเนอร์ */
    padding: 2rem;
    color: #fff;
}

.hero3-info h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 4rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
}

.hero3-info h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero2-info p {
    text-align: center;
    /* จัดข้อความในบล็อกให้อยู่กึ่งกลาง */
    margin: 1rem 0;
}

.hero3-info .hero2-btn {
    display: inline-block;
    background-color: #DF00B1;
    color: #fff;
    padding: 0.5rem 2rem;
    /* ขยายขนาดปุ่มด้วยการเพิ่ม padding */
    border-radius: 18px;
    text-decoration: none;
}



/** หน้า 4 */

.blog4 {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero4-con {
    display: flex;
    justify-content: center;
    /* จัดให้อยู่กึ่งกลางแนวนอน */
    align-items: center;
    /* จัดให้อยู่กึ่งกลางแนวตั้ง */
    text-align: center;
    /* จัดข้อความให้อยู่กึ่งกลางในบรรทัด */
    height: 100vh;
    /* ตั้งความสูงให้เต็มหน้าจอ */
}

.hero4-info {
    max-width: 800px;
    /* จำกัดความกว้างของเนื้อหา */
    margin: 0 auto;
    /* จัดให้อยู่ตรงกลางในคอนเทนเนอร์ */
    padding: 2rem;
    color: #fff;
}

.hero4-info h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 4rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #DF00B1;
    line-height: 1;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero4-info h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 2rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero4-info p {
    text-align: center;
    /* จัดข้อความในบล็อกให้อยู่กึ่งกลาง */
    margin: 1rem 0;
}

.hero4-info .hero2-btn {
    display: inline-block;
    background-color: #DF00B1;
    color: #fff;
    padding: 0.5rem 2rem;
    /* ขยายขนาดปุ่มด้วยการเพิ่ม padding */
    border-radius: 18px;
    text-decoration: none;
}



/** หน้า 5 */
.blog5 {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    padding: 80px 20px;
}

.blog5-text h3 {
    font-size: 40px;
    color: #fff;
    text-align: center;
    padding: 30px;

}

.img-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    /* ให้การเคลื่อนที่เป็นแนวนอน */
    white-space: nowrap;
}

.img-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-right: 10px;
    /* ปรับให้รูปภาพอยู่ในกรอบ */

}

/* แอนิเมชันสำหรับแถวที่ 1 */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* แอนิเมชันสำหรับแถวที่ 2 */
@keyframes slideRight {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ใช้แอนิเมชันในแต่ละแถว */
.img-top {
    animation: slideLeft 35s linear infinite;
}

.img-bottom {
    animation: slideRight 35s  linear infinite;
}

.img-container:hover {
    animation-play-state: paused;
    /* หยุดแอนิเมชันเมื่อเมาส์อยู่เหนือ */
}




  /** หน้า 6 การ์ด */
.container6 {
  background-color: #000;
  height: 100vh;
  /* ให้ความสูงเต็มหน้าจอ */
  padding-top: 50px;
  /* เว้นระยะห่างจากขอบบน 50px */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin-bottom: 20px;
}

.article-title {
  font-family: 'Kanit', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: #fff;
}

.view-all-btn {
  font-family: 'Kanit', sans-serif;
  font-size: 16px;
  color: #fff;
  text-decoration: none;

}

.hero6-con {
  display: flex;
  justify-content: flex-start; /* เรียงการ์ดจากซ้ายไปขวา */
  gap: 35px;
  width: 100%;
  max-width: 1200px;
  transition: transform 0.5s ease-in-out;
}

.card {
  background-color: transparent;
    border: 1px solid #808080;
    color: #fff;
    flex: 0 0 342px;
    margin: 0;
    padding: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: none;
    text-decoration: none;
    position: relative;
    min-height: 530px; 


       /* padding: 50px 30px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column */
}

@media (max-width: 767px) {
    .card {

   display:flex;
        flex-direction: column;
        align-items: center
}
}

.card img {
  width: 100%;
  height: auto;
}

.card-content {
  padding: 20px;
  text-align: left;
}

.card-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card-content p {
  font-size: 14px;
  color: #fff;
  margin-bottom: 20px;
}

.card-btn {
  display: block;
  background-color: #e6007e;
  color: #fff;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
}

/* จัดสไลด์ */
.carousel {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.carousel-items {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
}

/* ลูกศร */
.carousel-arrow {
    position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
}

.left-arrow {
  left: 50px;
}

.right-arrow {
  position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    right: 50px;
}

/* ปุ่ม 3 ปุ่มข้างล่าง */
.carousel-indicators {
    display: none; /* ซ่อนปุ่มลูกศรทั้งหมด */
  position: absolute;
  bottom: -50px;
  /* ปรับตำแหน่งให้อยู่นอกกรอบการ์ด */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #717171;
}

.dot {
  height: 15px;
  width: 15px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px;
  cursor: pointer;
}

.dot.active {
  background-color: #717171;
}

.imgarrow-right {
  position: absolute;
  right: 20px; /* ระยะห่างจากขอบขวา */
  bottom: 10px; /* ระยะห่างจากขอบล่าง */
  width: 25px; /* ขนาดของลูกศร */
  height: auto;
}




/** หน้า 7 */

.blog7 {
    position: relative;
    background-color: #000;
    padding: 80px 20px;
}

.blog7-text {
    font-size: 40px;
    color: #fff;
    text-align: center;
}

/* ซ่อนชุดที่ 2 */
.logo-container2 {
    position: absolute; /* ให้ซ้อนทับกัน */
    top: 50%; /* เริ่มจากด้านบน */
    left: 50%; /* จัดกลาง */
    transform: translateX(-50%); /* ปรับให้อยู่ตรงกลาง */
    opacity: 0; /* เริ่มต้นด้วยความโปร่งใส 0 */
    pointer-events: none; /* ไม่ให้ตอบสนองต่อการคลิก */
    transition: opacity 0.5s ease, transform 1.5s ease; /* ตั้งค่า transition */
}

/* การเลื่อนเข้า */
.logo-container2.active {
    opacity: 1; /* เพิ่มความโปร่งใส */
    pointer-events: auto; /* ให้ตอบสนองต่อการคลิก */
}

/* แถวบนเลื่อนเข้าจากซ้าย */
.logo-container2 .logo-row:first-child {
    transform: translateX(-100%); /* เริ่มจากซ้าย */
    transition: transform 1.5s ease; /* ตั้งค่า transition */
}

.logo-container2.active .logo-row:first-child {
    transform: translateX(0); /* เลื่อนเข้ามา */
}

/* แถวล่างเลื่อนเข้าจากขวา */
.logo-container2 .logo-row:last-child {
    transform: translateX(100%); /* เริ่มจากขวา */
    transition: transform 1.5s ease; /* ตั้งค่า transition */
}

.logo-container2.active .logo-row:last-child {
    transform: translateX(0); /* เลื่อนเข้ามา */
}

/* การเลื่อนออก */
.logo-container2.exit .logo-row:first-child {
    transform: translateX(-100%);
}

.logo-container2.exit .logo-row:last-child {
    transform: translateX(100%);
}

.logo-container2.exit {
    opacity: 0;
}





/* การเลื่อนเข้า */
.logo-container {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 1.5s ease;
    display: flex; /* ใช้ flexbox */
    justify-content: center; /* จัดให้อยู่ตรงกลางแนวนอน */
    align-items: center; /* จัดให้อยู่ตรงกลางแนวตั้ง */
    flex-direction: column; /* จัดแถวในแนวตั้ง */
}

.logo-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* ระยะห่างระหว่างโลโก้ */
    margin-bottom: 20px; /* ระยะห่างระหว่างแถว */
}

.logo-container.active {
    opacity: 1;
    pointer-events: auto;
}

.left-slide {
    transform: translateX(-100%);
    transition: transform 1.5s ease;
}

.right-slide {
    transform: translateX(100%);
    transition: transform 1.5s ease;
}

.logo-container.active .left-slide {
    transform: translateX(0);
}

.logo-container.active .right-slide {
    transform: translateX(0);
}

/* การเลื่อนออก */
.logo-container.exit .left-slide {
    transform: translateX(-100%);
}

.logo-container.exit .right-slide {
    transform: translateX(100%);
}

.logo-container.exit {
    opacity: 0;
}




/** footer */
.footer {
    background-color: #000;
    /* พื้นหลังสีดำ */
    padding: 80px 20px;
    color: #fff;
    /* สีตัวอักษรเป็นสีขาว */
}

.footer-container {
    display: flex;
    justify-content: flex-start;
    /* กระจายคอลัมน์ให้ห่างกัน */
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* ทำให้ตอบสนองต่อหน้าจอขนาดเล็กได้ */
}

.footer .map-container,
.footer .mail-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    /* เพิ่มระยะห่างเล็กน้อยระหว่างบรรทัด */
}

.footer .map-container img,
.footer .mail-container img {
    margin-right: 10px;
    /* เพิ่มระยะห่างระหว่างไอคอนกับข้อความ */
    width: 20px;
    /* ขนาดของไอคอน */
    height: auto;
}

.footer .mail-container a,
.footer .map-container p {
    margin: 0;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
}

.footer .mail-container a:hover {
    text-decoration: underline;
}

.footer .social-icons a {
    margin-right: 15px; /* เพิ่มระยะห่างเท่ากันระหว่างแต่ละไอคอน */
    display: inline-block; /* ทำให้ไอคอนเรียงตามแนวนอน */
}

.footer .social-icons img {
    width: 24px; /* ขนาดของไอคอน */
    height: 24px; /* ให้ขนาดเท่ากันทั้งด้านกว้างและสูง */
    object-fit: cover; /* เพื่อให้ภาพไอคอนเต็มพื้นที่โดยไม่เสียอัตราส่วน */
  }





.footer-column1 {
    flex: 1;
    margin: 0 20px;
    min-width: 200px;
    /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
    text-align: left;
}

.footer-column1 h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.footer-column1 p{
    text-align: left;
}
.footer-column1 ul {
    margin-bottom: 20px;
    font-size: 14px;
    list-style-type: none;
}

.footer-column1 a {
    color: #fff;
    text-decoration: none;
}

.footer-column1 a:hover {
    text-decoration: underline;
}



.footer-column2 {
    flex: 1;
    margin: 0 20px;
    min-width: 200px;
    /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
    padding-left: 150px;
}

.footer-column2 h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.footer-column2 p,
.footer-column2 ul {
    margin-bottom: 20px;
    font-size: 14px;
    list-style-type: none;
}

.footer-column2 a {
    color: #fff;
    text-decoration: none;
}

.footer-column2 a:hover {
    text-decoration: underline;
}



.footer-column3 {
    flex: 1;
    margin: 0 20px;
    min-width: 200px;
    /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
    text-align: left;
}

.footer-column3 h3 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.footer-column3 p,
.footer-column3 ul {
    margin-bottom: 20px;
    font-size: 14px;
    list-style-type: none;
}

.footer-column3 a {
    color: #fff;
    text-decoration: none;
}

.footer-column3 a:hover {
    text-decoration: underline;
}




.social-icons a {
    color: #fff;
    margin-right: 10px;
    font-size: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 12px;
    color: #fff;
}










/* ซ่อนเมนูสำหรับหน้าจอเล็ก */
/* @media (max-width: 767px) { */
@media (max-width: 1024px) {


    body {
        overflow-x: hidden; /* ป้องกันการเลื่อนแนวนอน */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }

    html, body {
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* ซ่อนส่วนที่เกินออกทางด้านข้างบนหน้าจอโทรศัพท์ */
      }
      
    /* ปรับขนาดของวิดีโอหรือภาพให้พอดีกับหน้าจอมือถือ */
    .hero-img, .background-video {
        width: 100%; /* ปรับให้ภาพขยายเต็มความกว้างหน้าจอมือถือ */
        max-width: 100vw; /* จำกัดขนาดสูงสุดไม่ให้เกินความกว้างหน้าจอ */
        height: auto; /* ให้ปรับความสูงอัตโนมัติตามสัดส่วน */
        object-fit: cover; /* ทำให้ภาพครอบคลุมพื้นที่อย่างเหมาะสม */
        pointer-events: none; /* ไม่ให้สามารถคลิกได้ */
    }
    
    nav {
        padding: 1rem 2rem;
        top: 0;
        left: 0;
        background-color: #000;
        width: 100%; /* ให้ครอบคลุมความกว้างของหน้าจอ */
        border-radius: 0;
        z-index: 1000;
        transform: translateX(0); /* เอา translateX ออกเพื่อให้อยู่ชิดขอบซ้าย */
    }

    .nav-con {
        display: flex;
        justify-content: flex-start; /* จัดเนื้อหาไปทางซ้าย */
        align-items: center; /* ให้อยู่ตรงกลางแนวตั้ง */
        padding-left: 1rem; /* เพิ่ม padding เพื่อขยับโลโก้ออกจากขอบซ้าย */
        width: 100%;
    }

    .logo {
        margin-left: 0px;
        /* ขยับโลโก้ให้อยู่ห่างจากขอบซ้าย */
    }

    .menu {
        display: none;
        /* ซ่อนเมนู */
        flex-direction: column;
        background-color: #000;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        z-index: 1000;
        align-items: self-start;
        line-height: 1.0; /* ปรับให้ใกล้กันมากขึ้น */
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .menu li {
        padding-left: 45px; /* ปรับขนาดตามความต้องการ */
      }

    .menu.active {
        display: flex;
        /* แสดงเมนูเมื่อคลิกไอคอน */
    }


    /* Hamburger icon */
    .hamburger {
        position: absolute;
        right: 20px;
        /* บังคับให้แฮมเบอร์เกอร์อยู่ชิดซ้าย */
        top: 50%;
        /* ปรับให้แฮมเบอร์เกอร์อยู่กึ่งกลางในแนวตั้ง */
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 25px;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 30px;
        height: 3px;
        background-color: #fff;
        margin: 4px 0;
        transition: all 0.3s ease-in-out;
    }





    /* สำหรับพื้นหลังและเลย์เอาต์หลัก */
.hero-section {
    background-color: #000;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column; /* จัดเรียงเนื้อหาให้เป็นแนวตั้ง */
    justify-content: center;
    align-items: center;
}

.hero-con {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px;

}

.hero-info {
    width: 90%; /* ปรับให้ใช้พื้นที่ 45% ของความกว้าง */
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    color: #fff;
    text-align: center;
}

.hero-info h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 48px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #DF00B1;
    transform: translateY(-10px); /* ขยับขึ้นไป 40px */
}

.hero-info h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 20px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1.2;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
    transform: translateY(-10px); /* ขยับขึ้นไป 20px */
}

.hero-info p {
    font-family: 'Kanit', sans-serif;
    font-size: 14px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 300 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    text-align: center;
    transform: translateY(-10px); /* ขยับขึ้นไป 20px */
}



.hero-info2 {
    width: 90%; /* ปรับให้ใช้พื้นที่ 45% ของความกว้าง */
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem;
    color: #fff;
    text-align: center;
}

.hero-info2 h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 38px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #DF00B1;
    transform: translateY(-20px); /* ขยับขึ้นไป 40px */
}

.hero-info2 h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 22px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1.5;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
    transform: translateY(-20px); /* ขยับขึ้นไป 40px */
}

.hero-info2 p {
    font-family: 'Kanit', sans-serif;
    font-size: 14px !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 300 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    text-align: center;
    transform: translateY(-20px); /* ขยับขึ้นไป 20px */
}

.hero-img {
    width: 100%; /* ปรับขนาดความกว้างของวิดีโอ */
    padding: 20px; /* เพิ่ม padding เพื่อเว้นช่องว่างระหว่างวิดีโอกับขอบ */
    margin-top: 60px;
    display: flex;
    justify-content: center;
    order: -1; /* ทำให้ video ขึ้นมาอยู่ด้านบน */

}

.background-video {
    width: 70%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 45px;
}

.hero-btn-wrapper {
    display: flex;
    justify-content: center; /* จัดปุ่มให้อยู่ทางซ้าย */
    align-items: center;
    margin-top: 5px;
    width: 100%; /* ให้ container กินพื้นที่เต็ม */
    position: relative; /* ไม่ใช้ absolute เพื่อให้ตำแหน่งยืดหยุ่น */
    padding: 1rem;
    transform: translateY(-30px); /* ขยับขึ้นไป 20px */

}

#openPopupBtnFooter {
    text-decoration: none !important;
}

.background-video2, .background-video3, .background-video4 {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero2-con, .hero3-con, .hero4-con {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.img-container {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    /* ให้การเคลื่อนที่เป็นแนวนอน */
    white-space: nowrap;
}

.img-container img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-right: 10px;
    /* ปรับให้รูปภาพอยู่ในกรอบ */

}

/* Popup */
.popup {
    width: 100%; /* ตั้งค่าให้กว้าง 90% ของหน้าจอ */
    max-width: 100%; /* กำหนดความกว้างสูงสุด */
    max-height: 100%; /* กำหนดความสูงสูงสุด */
    overflow-y: auto; /* เปิดการเลื่อนแนวตั้ง */
    padding: 0px; /* เพิ่ม padding ภายใน */
    margin: 0 auto; /* จัดให้กลาง */
    background-color: #000; /* เพิ่มพื้นหลังให้ popup */
    border-radius: 10px; /* มุมโค้ง */
}

/* ซ่อน scrollbar */
.popup::-webkit-scrollbar {
    display: none; /* ซ่อน scrollbar ใน Webkit-based browsers (Chrome, Safari) */
}

/* Firefox */
.popup {
    scrollbar-width: none; /* ซ่อน scrollbar ใน Firefox */
}

.popup-content {
    background-color: #000;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    /* เพิ่มความโค้งให้กรอบ */
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.popup-content button {
    background-color: #DF00B1;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    width: 100%;
    /* ให้ปุ่มกินพื้นที่ container */
    max-width: 300px;
    /* ขนาดสูงสุดของปุ่ม */
    margin-bottom: 15px;
}

.popup-content textarea {
    width: 100%;
    /* ให้ textarea กินพื้นที่เต็ม */
    height: 40px;
    /* กำหนดความสูงให้เหมือนกับ input */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 25px;
    /* เพิ่มความโค้งให้เหมือนกับ input */
    box-sizing: border-box;
    resize: none;
    /* ปิดการยืดหดของ textarea */
    font-size: 16px;
    /* ปรับขนาดตัวอักษร */
    background-color: #f9f9f9;
    /* สีพื้นหลังเหมือนกับ input */
    color: #333;
    /* สีตัวอักษรเหมือนกับ input */
    overflow: hidden;
    /* ปิดการแสดง scroll bar */
}
.checkbox-container {
    display: flex; /* ใช้ flexbox สำหรับการจัดเรียง */
    flex-direction: column; /* ให้ checkbox เรียงเป็นแนวตั้ง */
    justify-content: space-between; /* กระจายพื้นที่ระหว่างคอลัมน์ */
    width: 100%; /* ให้คอนเทนเนอร์กินพื้นที่เต็ม */
    flex-wrap: wrap; /* ให้ checkbox ที่เหลือขยับขึ้นมาข้างกันถ้ามีที่ว่าง */
    gap: 3px; /* ปรับช่องว่างระหว่างคอลัมน์ให้เล็กลง */
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 2px; /* ลดระยะห่างระหว่าง checkbox */
}

.checkbox-group label {
    margin-left: 5px; /* ลดระยะห่างระหว่าง checkbox กับ label */
    white-space: nowrap; /* ให้ข้อความอยู่ในบรรทัดเดียว */
}


.hero4-info h1 {
    font-family: 'Kanit', sans-serif;
    font-size: 3rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 400 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #DF00B1;
    line-height: 1;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}

.hero4-info h3 {
    font-family: 'Kanit', sans-serif;
    font-size: 1.8rem !important;
    /* ขนาดตัวอักษรใหญ่ขึ้น */
    font-weight: 500 !important;
    /* ปรับน้ำหนักให้บาง */
    color: #ffffff;
    line-height: 1;
    /* เพิ่มระยะห่างระหว่างบรรทัด */
}







 /** หน้า 6 การ์ด */
.container6 {
    background-color: #000;
    height: 450vh;
    /* ให้ความสูงเต็มหน้าจอ */
    padding-top: 0px;
    /* เว้นระยะห่างจากขอบบน 50px */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  .header-container {
    display: flex;
    flex-direction: column; /* จัดเรียงแบบแนวตั้ง */
    align-items: center;
  }
  
  .article-title {
    font-family: 'Kanit', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
  }
  
  .view-all-btn {
    font-family: 'Kanit', sans-serif;
    font-size: 16px;
    color: #fff;
    text-decoration: none;
    text-align: center;
  }
  
  .hero6-con {
    display: flex;
    flex-direction: column; /* เรียงการ์ดในแนวตั้ง */
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0 15px; /* เพิ่ม padding เพื่อเว้นขอบ */
  }
  
  .card {
    background-color: transparent;
      border: 1px solid #808080;
      color: #fff;
      flex: 0 0 300px;
      margin: 0;
      padding: 0;
      border-radius: 15px;
      overflow: hidden;
      box-shadow: none;
      text-decoration: none;
      position: relative;
      width: 350px; /* ปรับให้เล็กลงตามต้องการ */
      height: 300px; /* กำหนดความสูงของการ์ด */
      min-height: 530px; /* เพิ่มความสูงขั้นต่ำเพื่อให้การ์ดยาวขึ้น */
  }
  
  .card img {
    width: 100%;
    height: auto;
  }
  
  .card-content {
    padding: 20px;
    text-align: left;
  }
  
  .card-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .card-content p {
    font-size: 14px;
    color: #fff;
    margin-bottom: 20px;
  }
  
  .card-btn {
    display: block;
    background-color: #e6007e;
    color: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
  }
  
  /* จัดสไลด์ */
  .carousel {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
  }
  
  .carousel-items {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
  }
  
  /* ลูกศร */
  .carousel-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
  }
  
  .left-arrow {
    left: 50px;
  }
  
  .right-arrow {
    position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 2rem;
      color: #fff;
      background-color: rgba(0, 0, 0, 0.5);
      padding: 10px;
      cursor: pointer;
      border-radius: 50%;
      z-index: 10;
      right: 50px;
  }
  
  /* ปุ่ม 3 ปุ่มข้างล่าง */
  .carousel-indicators {
    position: absolute;
    bottom: -50px;
    /* ปรับตำแหน่งให้อยู่นอกกรอบการ์ด */
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 5px;
  }
  
  .dot {
    height: 10px;
    width: 10px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
  }
  
  .dot.active {
    background-color: #717171;
  }
  
  .dot {
    height: 15px;
    width: 15px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    margin: 0 5px;
    cursor: pointer;
  }
  
  .dot.active {
    background-color: #717171;
  }
  
  .imgarrow-right {
    position: absolute;
    right: 20px; /* ระยะห่างจากขอบขวา */
    bottom: 10px; /* ระยะห่างจากขอบล่าง */
    width: 25px; /* ขนาดของลูกศร */
    height: auto;
  }




  .blog7 {
    position: relative;
    background-color: #000;
    padding: 10px 0px;
}

.blog7-text {
    font-size: 30px;
    color: #fff;
    text-align: center;
    padding-bottom: 40px;
}

/* ตั้งค่าขนาดของโลโก้ */
.logo-row img {
    max-width: 80px !important;
    height: auto;
    margin: 0 20px;
}

/* การเลื่อนเข้าและออกสำหรับทั้งสองชุดแบบแนวตั้ง */
.logo-container, .logo-container2 {
    display: grid;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: absolute;
    top: 120px;
    left: 0;
    width: 100%;
    overflow: hidden; /* ป้องกันการเกิดพื้นที่ขาวข้างๆ */
}

/* ใช้ grid เพื่อให้แสดงผลแบบ 2 คอลัมน์ */
.logo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* แสดงผลแบบ 4 คอลัมน์ */
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* ซ่อนแถวล่าง */
.logo-container .logo-row:nth-child(n+3) {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

/* เมื่อ active จะแสดงแถวล่าง */
.logo-container.active .logo-row:nth-child(n+3) {
    opacity: 1;
    transform: translateY(0);
}

/* การเลื่อนเข้าและออกในแนวตั้ง */
.left-slide, .right-slide {
    transform: translateY(-50%); /* เลื่อนขึ้นจากด้านบน */
    transition: transform 1.5s ease;
}

.logo-container.active .left-slide,
.logo-container.active .right-slide,
.logo-container2.active .left-slide,
.logo-container2.active .right-slide {
    transform: translateY(0); /* แสดงแถวบนและแถวล่าง */
}

.logo-container.exit .left-slide,
.logo-container.exit .right-slide,
.logo-container2.exit .left-slide,
.logo-container2.exit .right-slide {
    transform: translateY(50%); /* ซ่อนแถวล่างทั้งหมด */
}

/* ตั้งค่าให้ logo-container2 ไม่แสดงเมื่อยังไม่ active */
.logo-container2 {
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.logo-container2.active {
    opacity: 1;
    transform: translateY(0); /* แสดงผล */
}

.logo-container2.exit {
    opacity: 0;
    transform: translateY(50%); /* ซ่อนผล */
}




.footer-container {
    display: flex;
    justify-content: flex-start;
    /* กระจายคอลัมน์ให้ห่างกัน */
    max-width: 1200px;
    margin-top: 620px;
    flex-wrap: wrap;
    /* ทำให้ตอบสนองต่อหน้าจอขนาดเล็กได้ */
}


  .footer-column2 {
    flex: 1;
    margin: 0 20px;
    min-width: 200px;
    /* กำหนดขนาดขั้นต่ำของคอลัมน์ */
    padding-left: 0px;
}

.footer-column2 h3 {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
}

.footer-column2 p,
.footer-column2 ul {
    margin-bottom: 20px;
    font-size: 14px;
    list-style-type: none;
}

.footer-column2 a {
    color: #fff;
    text-decoration: none;
    line-height: 2; /* ระยะห่างระหว่างบรรทัด */
}

.footer-column2 a:hover {
    text-decoration: underline;
}
}



/* สำหรับ iPad ขนาดกลาง (768px ถึง 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .logo-container, .logo-container2 {
        position: absolute;
        top: 70%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 1;
        pointer-events: auto;
        transition: opacity 1s ease-in-out;
        width: 100%;
        max-width: 280px;
        max-height: 150px;
        padding: 10px 0;
        box-sizing: border-box;
        z-index: 2;
    }

    .logo-row {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    }

    .logo-container.active .logo-row,
    .logo-container2.active .logo-row {
        opacity: 1;
        transform: translateY(0);
    }

    .logo-row img {
        max-width: 45px;
        height: auto;
        max-height: 60px;
        margin: 0 10px;
    }

    .menu, .nav, .menu li, .menu li a {
        opacity: 1;
        pointer-events: auto;
        z-index: 3;
    }

    .works, .blog, .contact {
        opacity: 1;
        pointer-events: auto;
        z-index: 3;
        margin-top: 180px;
    }

    body, html {
        overflow-x: hidden;
    }

    .blog7 {
        position: relative;
        background-color: #000;
        padding: 20px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
    }

    .footer-container {
        display: flex;
        justify-content: flex-start;
        max-width: 1200px;
        margin-top: 100px;
        flex-wrap: wrap;
    }
}



/* สำหรับหน้าจอขนาดใหญ่ (เช่น 1024px ขึ้นไป) */
@media (min-width: 1024px) {
    .logo-container, .logo-container2 {
        position: absolute;
        top: 70%; /* ปรับตำแหน่งโลโก้ลงมาจากด้านบน */
        left: 50%;
        transform: translateX(-50%); /* จัดกลางแนวนอน */
        opacity: 1; /* ทำให้โลโก้แสดง */
        pointer-events: auto; /* ทำให้สามารถคลิกได้ */
        transition: opacity 1s ease-in-out;
        width: 100%;
        max-width: 280px;
        max-height: 150px;
        padding: 10px 0;
        box-sizing: border-box;
        z-index: 2; /* เพิ่ม z-index เพื่อให้โลโก้อยู่บนสุด */
    }

    /* เมื่อ active จะทำให้แสดง */
    .logo-container.active, .logo-container2.active {
        opacity: 1;
        pointer-events: auto;
    }

    .logo-row {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    }

    /* เมื่อโลโก้แสดง จะค่อยๆ เลื่อนขึ้น */
    .logo-container.active .logo-row,
    .logo-container2.active .logo-row {
        opacity: 1;
        transform: translateY(0);
    }

    /* ปรับขนาดของโลโก้ */
    .logo-row img {
        max-width: 60px; /* ขนาดเล็กลงเมื่ออยู่ในแนวนอน */
        height: auto;
        max-height: 80px;
        margin: 0 15px; /* ลดช่องว่างระหว่างโลโก้ */
    }

    .footer-container {
        display: flex;
        justify-content: flex-start;
        /* กระจายคอลัมน์ให้ห่างกัน */
        max-width: 1200px;
        margin-top: 100px;
        flex-wrap: wrap;
        /* ทำให้ตอบสนองต่อหน้าจอขนาดเล็กได้ */
    }

}

/* สำหรับการตั้งค่าแนวนอน */
@media (min-width: 1024px) and (orientation: landscape) {
    .logo-container, .logo-container2 {
        top: 70%; /* ปรับตำแหน่งให้สูงขึ้นเล็กน้อย */
        width: 60%; /* กำหนดขนาดของโลโก้ในแนวนอน */
    }

    /* ปรับขนาดโลโก้ให้เหมาะสมในแนวนอน */
    .logo-row img {
        max-width: 50px; /* ลดขนาดโลโก้ในแนวนอน */
        height: auto;
        max-height: 70px;
        margin: 0 12px; /* ลดระยะห่างระหว่างโลโก้ */
    }

    .footer-container {
        display: flex;
        justify-content: flex-start;
        /* กระจายคอลัมน์ให้ห่างกัน */
        max-width: 1200px;
        margin-top: 100px;
        flex-wrap: wrap;
        /* ทำให้ตอบสนองต่อหน้าจอขนาดเล็กได้ */
    }
    
}

/* ป้องกันการแสดงขอบขาว */
body, html {
    overflow-x: hidden;
}


